// javascrip string 循环位移
// 分割-独立反转->拼接后整体反转
function circleShift(message, position) {
  let leftR = message
    .slice(0, position)
    .split('')
    .reverse()
  let rightR = message
    .slice(position)
    .split('')
    .reverse()
  return [...leftR, ...rightR].reverse().join('')
}
let strNum = '0123456789'
let str = 'abcdefghijklmnopqrstuvwxyz'
console.log(circleShift(strNum, 2))
console.log(circleShift(str, 2))
